#include "main.h"
#include "horloge.h"


typedef struct
{
    uint8_t id;
    uint8_t time_start_HH;
    uint8_t time_start_MM;
    uint8_t time_stop_HH;
    uint8_t time_stop_MM;
    GPIO_TypeDef *light_GPIO;
    uint16_t light_PIN;
    uint8_t light_forced;
    uint8_t light_status;
}__LIGHT;

void vTaskCTRL_ECLAIRAGE();
void init_ECLAIRAGE();
void start_light(__LIGHT *light);
void stop_light(__LIGHT *light);
void return_light_status(uint8_t *light);